package com.hd.trans.db.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.chad.library.adapter.base.entity.node.BaseNode;
import com.hd.trans.common.Constants;

import java.util.List;
import java.util.Objects;

/**
 * Author:  yang
 * Date:    2020/01/02 14:50
 * Desc:    语言类分组
 */
public class ChildBottomNode extends BaseNode implements MultiItemEntity {


    private String name;


    public ChildBottomNode() {
    }

    public ChildBottomNode(String name) {
        this.name = name;
    }

    @Override
    public int getItemType() {
        return Constants.LevelType.CHILD_BOTTOM;
    }

    @Override
    public List<BaseNode> getChildNode() {
        return null;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ChildBottomNode that = (ChildBottomNode) o;
        return Objects.equals(name, that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name);
    }


}
